<?php
    //step4 闲家下注
        global $Room;
        $id=$connection->user['room'];
        act('initroom',$msg,$connection);
        $msg=array();
       $msg['id']='jsxx';
       $msg['html']=$Room[$id]['xx']['js'].'&nbsp;/&nbsp;'.$Room[$id]['xx']['zjs'].'&nbsp;局';
       act('html',$msg,$connection);

        $index=array();
        foreach ($Room[$id]['user'] as $key=>$connection3) {
            if($connection3->user['zt']==1){
                $index[]=array('index'=>$connection3->user['index'],'id'=>$connection3->user['id']);
            }
        }


        $msg=array();
        $msg['user']=$index;
        if($Room[$id]['user'][$connection->user['id']]->user['zt']=='1'){
            $msg['card']=$connection->user['card'];
            for($i=0;$i<5;$i++){
                if($msg['card'][$i]['zt']==0){
                    unset($msg['card'][$i]);
                }
            }
        }
        act('allfapai',$msg,$connection);

        act('mp3play','fapai',$connection);

         $msg=array();
        $msg['id']='operationButton';
        $msg['html']='';
        act('html',$msg,$connection);

        act('sss',$Room[$id]['bank']['index'],$connection);

        if($Room[$id]['time5']>0){
                act('djs',$Room[$id]['time5'],$connection);
                $msg=array();
                $msg['id']='divRobBankerText';
                $msg['html']='闲家下注';
                act('html',$msg,$connection);
        if($Room[$id]['user'][$connection->user['id']]->user['zt']=='1' && $Room[$id]['user'][$connection->user['id']]->user['beishu']=='-1'){
                $msg=array();
                $msg['id']='operationButton';
                $msg['html']='<div class="divCoin divCoin1" style="display: block;
                    z-index: 200;" onclick="send(\'xianxz\',{bs:1})">
                      <img src="/app/img/bull9/bull_times_bg1.png"  class="operationButton-gg"  /> 
                      <div class="operationButton-gg3">
                       1倍
                      </div>
                     </div> 
                     <div class="divCoin divCoin2" style="display: block;
                    z-index: 200;" onclick="send(\'xianxz\',{bs:2})">
                      <img src="/app/img/bull9/bull_times_bg1.png"  class="operationButton-gg"  /> 
                      <div  class="operationButton-gg3"  >
                       2倍
                      </div>
                     </div> 
                     <div class="divCoin divCoin3" style="display: block;
                    z-index: 200;" onclick="send(\'xianxz\',{bs:4})">
                      <img src="/app/img/bull9/bull_times_bg1.png"  class="operationButton-gg"  /> 
                      <div  class="operationButton-gg3"  >
                       4倍
                      </div>
                     </div> 
                     <div class="divCoin divCoin4" style="display: block;
                    z-index: 200;" onclick="send(\'xianxz\',{bs:5})">
                      <img src="/app/img/bull9/bull_times_bg1.png"  class="operationButton-gg"  /> 
                      <div  class="operationButton-gg3"  >
                       5倍
                      </div>
                     </div> 
                ';
                act('html',$msg,$connection); 
        }
        }

        if($Room[$id]['type']!='10'){
        foreach ($Room[$id]['user'] as $connection3) {
            if($connection3->user['beishu']!='-1' && $connection3->user['zt']=='1'){
                $img='/app/img/X-'.$connection3->user['beishu'].'.png';
                $mp3='xia'.$connection3->user['beishu'];


                $msg=array();
                $msg['index']=$connection3->user['index'];
                $msg['img']=$img;
                act('showmemberTimesText',$msg,$connection);
                act('mp3play',$mp3,$connection);
            }
        }
        }